import { computed, getCurrentInstance } from "vue";

/*
 * @Author: lmk
 * @Date: 2022-04-16 16:35:39
 * @LastEditTime: 2022-04-18 09:19:30
 * @LastEditors: lmk
 * @Description: 
 */
/**
 * @description: 监听切换
 * @param {*}
 * @return {*}
 */
export function useIsZh(){
  const {proxy} = getCurrentInstance()
  const isZh = computed(() => proxy.$i18n.locale === 'zh');
  return {isZh}
}